package com.econ.powercloud.ems.dal.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;

/**
 * <p>
 * ems预警配置表
 * </p>
 *
 * @author AutoGenerator
 * @since 2022-12-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class EmsWarnConfig extends Model {

    private static final long serialVersionUID = 1L;

    /**
     * 主键自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * ems设备编号
     */
    private String deviceCode;

    /**
     * 点号类型(见ditTypeEnum枚举)
     */
    private Integer ditType;

    /**
     * 点号
     */
    private String dit;

    /**
     * pid
     */
    private String pid;

    /**
     * pid名称
     */
    private String pidName;

    /**
     * 预警上限
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Double warnUpper;

    /**
     * 预警下限
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Double warnLower;

    /**
     * 创建时间
     */
    private Long gmtCreate;

    /**
     * 修改时间
     */
    private Long gmtModify;

    /**
     * 是否删除，1已删除
     */
    @TableField(fill = FieldFill.INSERT)
    @TableLogic(value = "0", delval = "1")
    private Integer deleteFlag;

}
